package com.qbccn.bbs.service.impl;

import com.qbccn.bbs.service.CommonService;
import com.qbccn.bbs.service.RedisService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
 * @author linke
 * @date 2020/8/1 0:25
 * @description
 */
@Service
public class CommonServiceImpl implements CommonService {

  @Autowired
  private RedisService redisService;

  @Override
  public void clear() {
    redisService.likeDeleteKey("menu:*");//删除用户菜单缓存
    redisService.delete("aclass");//删除文章分类缓存
  }
}
